import { ipcMain } from 'electron'
import si from 'systeminformation'

export default () => {
  /**
   * @abstract 获取编程环境信息
   */
  ipcMain.handle('get-env', async () => {
    const data = await si.versions()
    return data
  })
}
